<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
       function asyncFunc(params) {
           return new Promise(function (resolve,reject) {
               setTimeout(() => {
                   resolve("网络请求....")
               }, 1500);
           })
       }
       asyncFunc().then(function (res) {
           alert(res)
       })
    </script>
</head>
<body>
    <h1>Promise操作</h1>
</body>
</html>